<div class="menu_wrap">
	<div class="fl">
		<ul id="profile_menu" class="pt20 fnt11">
			<?php if(ApplicationSessions::run()->read('userID') != "") { ?>
				<li><a href="#">My profile</a></li>
				<li><a href="#">MY POINTS</a></li>
				<li><a href="<?php echo ApplicationConfig::getURL("", "my", "myCart"); ?>">MY CART</a></li>
				<li><a href="#">MY JOBS</a></li>
			<?php } else { ?>
				<li><a href="<?php echo ApplicationConfig::getURL("", "site", "index"); ?>">MY PROFILE</a></li>
				<li><a href="<?php echo ApplicationConfig::getURL("", "site", "index"); ?>">MY POINTS</a></li>
				<li><a href="<?php echo ApplicationConfig::getURL("", "my", "myCart"); ?>">MY CART</a></li>
				<li><a href="<?php echo ApplicationConfig::getURL("", "site", "index"); ?>">MY JOBS</a></li>
			<?php } ?>	
		</ul>
	</div>

	<div class="fl ml20 mt5"><img src=" <?php echo ApplicationConfig::app()->params['theme']['imageUrl']?>data/points.gif" /></div>
	
	<?php if(ApplicationSessions::run()->read('userID') != "") { ?>
	
	<div class="fr"> 
		<div class="fl mr80 farial" style="text-align:right;">
			<div class="fnt14 wh mt10">Welcome</div>
			<div class="fnt14 wh"><?php echo Yii::app()->session['first_name'].' '.Yii::app()->session['last_name']; ?></div>
		</div>
		<?php if(!empty(Yii::app()->session['profile_image'])){ ?>
			<div class="profile_pic"><img class="pa4" src="<?php echo ApplicationConfig::getImageUrl('PROFILE-IMAGES', array('file_name'=>Yii::app()->session['profile_image']));?>" height="47px" width="48px"/></div>
		<?php } else { ?>
			<div class="profile_pic"><img class="pa4" src="<?php echo ApplicationConfig::app()->params['theme']['imageUrl']?>data/user.gif" alt="" /></div>
		<?php } ?>
	</div>
	
	<?php } else { ?>
		<div class="fr">
			<div class="fl mr80 farial" style="text-align:right;">
				<div class="fnt14 wh mt10">Welcome</div>
				<div class="fnt14 wh">Guest</div>
			</div>
			<div class="profile_pic"><img class="pa4" src="<?php echo ApplicationConfig::app()->params['theme']['imageUrl']?>data/user.gif" alt="" /></div>
		</div>	
	<?php } ?>	
	
	<div class="cl"></div>
</div>